#include <iostream>

using namespace std;

const int N = 1e6 + 10;

int n;
int res = 1, cnt = 1;

int main()
{
	cin >> n;
	int last;
	
	cin >> last;
	
	for (int i = 1; i < n; i ++ )
	{
		int v;
		cin >> v;
		
		if (last < v) cnt ++ ;
		else cnt = 1;
		
		res = max(cnt, res);
		last = v; 
	}
	
	cout << res << endl;
	
	return 0;
}
